package com.atguigu.eduservice.service;

import com.atguigu.commonutils.result.R;
import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.EduTeacher;
import com.atguigu.eduservice.entity.frontvo.CourseQueryVo;
import com.atguigu.eduservice.entity.frontvo.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CourseInfoVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseQuery;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author kabuda
* @description 针对表【edu_course(课程)】的数据库操作Service
* @createDate 2023-04-24 14:04:24
*/
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourse(String id);

    void updateCourse(CourseInfoVo courseInfoVo);

    CoursePublishVo courseInfo(String id);

    R pageQuery(Long page, Long limit, CourseQuery courseQuery);

    void removeCourseInfo(String courseId);

    List<EduCourse> indexCourse();

    Map<String, Object> searchList(Long page, Long limit, CourseQueryVo courseQueryVo);

    CourseWebVo FrontCourseInfo(String courseId);

    void addViewCount(String courseId);


}
